package data.visu.structures;

/**
 * @author Charles Perin
 * 29 mars 2011
 * LIMSI - INRIA Rennes
 * charles.perin@free.fr
 *
 */
public class ValueAndString extends Object{

	private int value;
	private String string;
	
	public ValueAndString(int value, String string){
		setValue(value);
		setString(string);
	}
	
	@Override
	public boolean equals(Object vs){
		return (this.value==((ValueAndString)vs).getValue() && this.string.equals(((ValueAndString)vs).getString()));
	}
	
	@Override
	public String toString(){
		return "Value="+value+", string="+string;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public int getValue() {
		return value;
	}

	public void setString(String string) {
		this.string = string;
	}

	public String getString() {
		return string;
	}
}
